package com.zjw.zy.coreui.fragment.adapter

import android.view.LayoutInflater
import android.view.ViewGroup
import com.zjw.zy.R
import com.zjw.zy.base.BaseRecyclerAdapter
import com.zjw.zy.bean.ToolIcon
import com.zjw.zy.coreui.fragment.holder.ToolHolder

class ToolsAdapter(listener: ItemListener<ToolHolder>) :
    BaseRecyclerAdapter<ToolIcon, ToolHolder>(listener) {
    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ToolHolder {
        val itemView = LayoutInflater.from(parent.context)
            .inflate(R.layout.holder_tool_item, parent, false)

        return ToolHolder(itemView)
    }
}